import {
    ELEMENT_TYPE_SORT_CONTAINER, ELEMENT_TYPE_HEADER_CONTAINER, ELEMENT_TYPE_FOOTER_CONTAINER,
} from '../element/Container';
import {
    ELEMENT_TYPE_BOX,
} from '../element/Box';
import {
    ELEMENT_TYPE_SLIDE,
} from '../element/Slide';
import {
    ELEMENT_TYPE_LIST,
} from '../element/List';
import {
    ELEMENT_TYPE_EMBEDDED,
} from '../element/Embedded';
import {
    ELEMENT_TYPE_IMAGE,
} from '../element/Image';
import {
    ELEMENT_TYPE_SEARCH,
} from '../element/Search';
import {
    ELEMENT_TYPE_DATA_BOX,
} from '../element/DataBox';
import {
    ELEMENT_TYPE_MAP,
} from '../element/Map';
import {
    ELEMENT_TYPE_MEMBERS,
} from '../element/Members';
import { ELEMENT_TYPE_VIDEO } from '../element/Video';
import {
    ELEMENT_TYPE_MULTISHOP,
} from '../element/Multishop';
import { ELEMENT_TYPE_COUPON, ELEMENT_TYPE_SECKILL, ELEMENT_TYPE_GOOD_CARD, ELEMENT_TYPE_FULL_DELIVERY, ELEMENT_TYPE_GROUP_PURCHASE } from '../element/SecKill';
import { ELEMENT_TYPE_BOOK } from '../element/Book';
import { ELEMENT_TYPE_FORM } from '../element/Form';
// 验证组件是否支持变成变成容器
export const types = [
    ELEMENT_TYPE_FORM,
    ELEMENT_TYPE_VIDEO,
    ELEMENT_TYPE_MAP,
    ELEMENT_TYPE_DATA_BOX,
    ELEMENT_TYPE_SEARCH,
    ELEMENT_TYPE_IMAGE,
    ELEMENT_TYPE_SLIDE,
    ELEMENT_TYPE_LIST,
    ELEMENT_TYPE_SORT_CONTAINER,
    ELEMENT_TYPE_HEADER_CONTAINER,
    ELEMENT_TYPE_FOOTER_CONTAINER,
    ELEMENT_TYPE_BOX,
    ELEMENT_TYPE_MEMBERS,
    ELEMENT_TYPE_EMBEDDED,
    ELEMENT_TYPE_MULTISHOP,
    ELEMENT_TYPE_SECKILL,
    ELEMENT_TYPE_COUPON,
    ELEMENT_TYPE_BOOK,
    ELEMENT_TYPE_FULL_DELIVERY,
    ELEMENT_TYPE_GOOD_CARD,
    ELEMENT_TYPE_GROUP_PURCHASE,
];
const validateConvertContainer = type => types.indexOf(type) > -1;
export default validateConvertContainer;
